Skip to content

Add RESTCONF server - Rousette - #472

Merged
mattiaswal merged 11 commits into
mainfrom
lzr/add-rousette
Jun 4, 2024
Merged

mattiaswal merged 11 commits into
mainfrom
lzr/add-rousette

Conversation

@mattiaswal

@mattiaswal mattiaswal commented Jun 3, 2024 •

Copy link
Copy Markdown
Contributor

Description

Other information

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

mattiaswal and others added 10 commits May 30, 2024 09:48
Required by rousette
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This enables access to /restconf on port 443 over HTTP/1.1 and HTTP/2
via rousette when enabled.

Also, slight refactor to allow including /restconf and /netbrowse as
optional locations in the main servier directive.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
We skip /telemetry/optics for now since we don't support any telementry atm.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Very simple tests work (hostname.py), more complex
tests (static_routing.py) failes due to the lack of
model prefix, for example. infix-ip:ipv4 instead of just
ipv4.

We need to fix this before you send your configuration, run
it through libyang for example and get the full model-name.
Sync after `make update-defconfig`:

 - avahi selected by mdns-alias package (all)
 - iptables and ca-certs selected by other packages (r2s)

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
@mattiaswal
mattiaswal requested review from troglobit and wkz and removed request for wkz June 3, 2024 12:45

@troglobit troglobit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Humble beginnings of RESTCONF support, I like it, very clean!

@mattiaswal
mattiaswal merged commit d2d1562 into main Jun 4, 2024
@mattiaswal
mattiaswal deleted the lzr/add-rousette branch June 4, 2024 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants